package top.iflyoung.cim.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import top.iflyoung.cim.biz.entity.ChatFriendship;

import java.util.List;

/**
 * @author liguiyang
 * @description
 * @sine 1.8
 * @date 2021/9/48:37
 **/
public interface ChatFriendshipMapper extends BaseMapper<ChatFriendship> {
    /**
     * 查出一个用户的可达性
     *
     * @param userId
     * @return
     */
    List<ChatFriendship> queryAllReachableUsers(@Param("userId") Long userId);
}
